home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / ds5000.md / RCS / limits.h,v < prev    next >
Encoding:
Text File  |  1991-11-21  |  2.7 KB  |  131 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.1.1;
  5. locks    jhh:1.1; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     89.07.08.14.55.49;  author nelson;  state Exp;
  11. branches 1.1.1.1;
  12. next     ;
  13.  
  14. 1.1.1.1
  15. date     91.10.22.14.27.46;  author kupfer;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Initial version from DECWRL.
  22. @
  23.  
  24.  
  25.  
  26. 1.1
  27. log
  28. @Initial revision
  29. @
  30. text
  31. @/*
  32.  * limits.h --
  33.  *
  34.  *    Declares machine-dependent limits on the values that can
  35.  *    be stored in integer-like objects.
  36.  *
  37.  * Copyright (C) 1989 by Digital Equipment Corporation, Maynard MA
  38.  *
  39.  *            All Rights Reserved
  40.  *
  41.  * Permission to use, copy, modify, and distribute this software and its 
  42.  * documentation for any purpose and without fee is hereby granted, 
  43.  * provided that the above copyright notice appear in all copies and that
  44.  * both that copyright notice and this permission notice appear in 
  45.  * supporting documentation, and that the name of Digital not be
  46.  * used in advertising or publicity pertaining to distribution of the
  47.  * software without specific, written prior permission.  
  48.  *
  49.  * Digitial disclaims all warranties with regard to this software, including
  50.  * all implied warranties of merchantability and fitness.  In no event shall
  51.  * Digital be liable for any special, indirect or consequential damages or
  52.  * any damages whatsoever resulting from loss of use, data or profits,
  53.  * whether in an action of contract, negligence or other tortious action,
  54.  * arising out of or in connection with the use or performance of this
  55.  * software.
  56.  *
  57.  * $Header: /sprite/src/lib/include/sun3.md/RCS/limits.h,v 1.3 89/02/10 11:15:55 rab Exp $ SPRITE (Berkeley)
  58.  */
  59.  
  60. #ifndef _LIMITS
  61. #define _LIMITS
  62.  
  63. /*
  64.  * Number of bits in a "char":
  65.  */
  66. #define CHAR_BIT        8
  67.  
  68. /*
  69.  * Minimum and maximum values for a "signed char":
  70.  */
  71. #define SCHAR_MIN        (-128)
  72. #define SCHAR_MAX        127
  73.  
  74. /*
  75.  * Maximum value for an "unsigned char":
  76.  */
  77. #define UCHAR_MAX        255
  78.  
  79. /*
  80.  * Minimum and maximum values for a "char":
  81.  */
  82. #define CHAR_MIN        (-128)
  83. #define CHAR_MAX        +127
  84.  
  85. /*
  86.  * Minimum and maximum values for a "short int":
  87.  */
  88. #define SHRT_MIN        0x8000
  89. #define SHRT_MAX        0x7fff
  90.  
  91. /*
  92.  * Maximum value for an "unsigned short int":
  93.  */
  94. #define USHRT_MAX        0xffff
  95.  
  96. /*
  97.  * Minimum and maximum values for an "int":
  98.  */
  99. #define INT_MIN            0x80000000
  100. #define INT_MAX            0x7fffffff
  101.  
  102. /*
  103.  * Maximum value for an "unsigned int":
  104.  */
  105. #define UINT_MAX        0xffffffff
  106.  
  107. /*
  108.  * Minimum and maximum values for a "long int":
  109.  */
  110. #define LONG_MIN        0x80000000
  111. #define LONG_MAX        0x7fffffff
  112.  
  113. /*
  114.  * Maximum value for an "unsigned long int":
  115.  */
  116. #define ULONG_MAX        0xffffffff
  117.  
  118. #endif /* _LIMITS */
  119. @
  120.  
  121.  
  122. 1.1.1.1
  123. log
  124. @Initial branch for Sprite server.
  125. @
  126. text
  127. @d27 1
  128. a27 1
  129.  * $Header: /sprite/src/lib/include/ds3100.md/RCS/limits.h,v 1.1 89/07/08 14:55:49 nelson Exp $ SPRITE (Berkeley)
  130. @
  131.